import request from '@/utils/request'
import { ObjectType, ResponseDataPromise } from 'typings/interfaces'
import * as proxy from '@/constants/proxy'
import download from '@/utils/download'
// import { Pagination } from '@/components/Records/types'
// import axios from 'axios'
// import { getToken } from '@/utils/auth'
export interface IndexListParams extends ObjectType {
  param?: string
  type: string //1中交2中咨
}
export const zjconBoardRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/superContributeExamineStatisticOverview',
    method: 'post',
    data,
  })
export const zjconBoardlistRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/superContributeExamineStatisticList',
    method: 'post',
    data,
  })
export const zjconBoardlistRequest2 = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/superContributeExamineStatisticList2',
    method: 'post',
    data,
  })
export const superExamineStatisticRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/superExamineStatistic',
    method: 'post',
    data,
  })
export const myExamineStatisticRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/myExamineStatistic',
    method: 'post',
    data,
  })
export const meExamineStatisticRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/meExamineStatistic',
    method: 'post',
    data,
  })
export const digitalBoardRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/question-bank/digitalBoard',
    method: 'post',
    data,
  })
export const updateConDataRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/updateScore',
    method: 'post',
    data,
  })
export const exportConDataRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/lookBoard/superContributeExamineStatisticExport',
    method: 'post',
    data,
    responseType: 'blob',
  })
export const saveConDataRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-score-edit-sum-record/superContributeSave',
    method: 'post',
    data,
  })
